package com.hospital.demo.service.impl.lxy;


import com.hospital.demo.mapper.lxy.CertificateMapper;
import com.hospital.demo.service.lxy.CertificateService;
import com.hospital.demo.model.lxy.Certificate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 李欣远
 * @since 2020-04-08
 */
@Service
public class CertificateServiceImpl implements CertificateService {
    @Autowired
    private CertificateMapper certificateMapper;


    @Override
    public List<Certificate> selCer() {
       return certificateMapper.selCer();
    }

    @Override
    public List<Certificate> selCerByD(int did) {
        return certificateMapper.selCerByD(did);
    }

    @Override
    public List<Certificate> selCerByDe(Certificate certificate) {
        return certificateMapper.selCerByDe(certificate);
    }

    @Override
    public int save(Certificate certificate) {
        return certificateMapper.save(certificate);
    }

    @Override
    public int updateById(Certificate certificate) {
        return certificateMapper.updateById(certificate);
    }

    @Override
    public int removeById(Integer cid) {
        return certificateMapper.removeById(cid);
    }

    @Override
    public List<Certificate> selCer0() {
        return null;
    }
}
